Skip to content

Conversation

anangl
Copy link
Contributor

@anangl anangl commented May 15, 2025

Cherry-picking of commits from zephyrproject-rtos/zephyr#89952.

Ref. NCSDK-33603

anangl added 3 commits May 15, 2025 17:17
…re ready

Ensure that a given clock controller is ready before making requests
to it. Otherwise, if for some reason the clock controller fails to
initialize (for example, when BICR turns out to be not populated with
required values), the test may end up with an enigmatic bus fault.

Upstream PR #: 89952

Signed-off-by: Andrzej Głąbek <[email protected]>
…he on-off services

If an on-off service records an error while transitioning to the on
state, it stays in the error state and does not allow new requests
to be made until its state is reset. Add resetting of the services
associated with particular clock controllers so that requests can
be retried after failures.

Upstream PR #: 89952

Signed-off-by: Andrzej Głąbek <[email protected]>
Add a setup routine that waits until DVFS finishes its initialization
and during that time tries to constantly make requests that involve
DVFS. This polling ensures that the clock control driver can properly
recover after an unsuccessful request.

Upstream PR #: 89952

Signed-off-by: Andrzej Głąbek <[email protected]>
Copy link

Copy link
Contributor

@MarekPieta MarekPieta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reported issue is gone. Thanks for the fix!

@anangl anangl merged commit 6add6ac into nrfconnect:main May 16, 2025
24 checks passed
@anangl anangl deleted the clock_control_nrf2_reset_ncs branch May 16, 2025 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants